<%@ taglib uri="http://struts.apache.org/tags-html" prefix="html" %>
<%@ taglib uri="http://struts.apache.org/tags-bean" prefix="bean" %>
<%@ taglib uri="http://struts.apache.org/tags-logic" prefix="logic" %>
<%@ taglib uri="http://struts.apache.org/tags-tiles" prefix="tiles" %> 

<tiles:insert page="/general/templateLoggedIn.jsp">
	<tiles:put name="title" value="Populate Database"/>
	<tiles:put name="nav"/>
	<tiles:put name="content" type="string">

			<div class="code">
					
				<logic:present name="populateDatabaseBean">
					<bean:write name="populateDatabaseBean" property="clean"/><br>
					<bean:write name="populateDatabaseBean" property="locations"/><br>
					<bean:write name="populateDatabaseBean" property="specializations"/><br>
					<bean:write name="populateDatabaseBean" property="disciplines"/><br>
					<bean:write name="populateDatabaseBean" property="universities"/>
				</logic:present>
				
				<logic:notPresent name="populateDatabaseBean">
					There are already data in the database. Population of database was not successful!
				</logic:notPresent>
								
			</div>
					
	</tiles:put>
</tiles:insert>